namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_CY_COALYARD")]
    public partial class PUB_CY_COALYARD
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_CY_COALYARD()
        {
            PUB_CY_PARTITION = new HashSet<PUB_CY_PARTITION>();
        }

        [Key]
        [StringLength(40)]
        public string COALYARD_ID { get; set; }

        [Required]
        [StringLength(200)]
        public string COALYARD_NAME { get; set; }

        public int COALYARD_TYPE { get; set; }

        public decimal? LENGTH { get; set; }

        public decimal? WIDTH { get; set; }

        public decimal? HEIGHT { get; set; }

        public decimal? DIAMETER { get; set; }

        public decimal? SECURE_HEIGHT { get; set; }

        public decimal DEGSIGN_VALUE { get; set; }

        public decimal SECURE_VALUE { get; set; }

        public byte ORDERS { get; set; }

        [StringLength(500)]
        public string REMARKS { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_CY_PARTITION> PUB_CY_PARTITION { get; set; }
    }
}
